package com.swyc.osschat.Test.designMode.builder.base;

import com.swyc.osschat.Test.designMode.builder.run.Computer;

/**
 * @description 抽象建造者类
 * @Author: z156940l@outlook.com
 * @className Builder
 * @Date: 2022/7/25 18:01
 */
public abstract class Builder {
    //持有一个产品电脑
    protected Computer computer = new Computer();

    //通过具体建造者 设置产品的属性
    public abstract void buildMainBoard(String mainBoard);
    public abstract void buildCpu(String cpu);
    public abstract void buildRam(String ram);
    public abstract Computer build();
}